package jhsys.hithink.dialogs;

import jhsys.hithink.R;
import android.app.Dialog;
import android.content.Context;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class HiProgressDialog extends Dialog{
	public TextView title;
	public HiProgressDialog(Context context,String message) {
		super(context, R.style.Theme_base_Sence_Execute);
		LayoutInflater inflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		View view = (RelativeLayout) inflater.inflate(
				R.layout.progress_dialog, null);
		setContentView(view);
		title = (TextView) findViewById(R.id.title);
		title.setText(message);
	}
	
	public boolean onKeyDown(int keyCode, KeyEvent event)
    {
        switch (keyCode)
        {
            case KeyEvent.KEYCODE_SEARCH:
                return true;
            default:
                break;
        }
        return super.onKeyDown(keyCode, event);
    }
}
